package org.xebia.roo.addon.openshift;

import org.apache.commons.lang3.StringUtils;

/**
 * Example of an enum used for tab-completion of properties.
 * 
 * @since 1.1.1
 */
public enum EmbeddableCartridge {
    MYSQL("mysql-5.1"),
    PHPMYADMIN("phpmyadmin-3.4"),
    JENKINS("jenkins-client-1.4"),
    METRICS("metrics-0.1"),
    MONGODB("mongodb-2.0"),
    ROCKMONGO("rockmongo-1.1"),
    MONGODB_MMS_AGENT("10gen-mms-agent-0.1"),
    POSTGRES("postgres-8.4");

    private String propertyName;

    private EmbeddableCartridge(String propertyName) {
        if (StringUtils.isBlank(propertyName)) {
            throw new AssertionError(propertyName);
        }
        this.propertyName = propertyName;
    }

    public String getPropertyName() {
        return propertyName;
    }

    @Override
    public String toString() {
        return propertyName;
    }

}